<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script>
			alert(window.location);
			window.alert("ready for baidu:");
			//window.location="https://www.baidu.com";
			
			function closeWin(){
				if(window.confirm("真的要关闭吗？"))
					window.close();///!
				else
					alert("继续嗨");
			}
			function openAdv(){
				 window.open("https://www.baidu.com","美女荷官在线发牌","fullscreen=no,height=300px,width=200px,resizable=no");
			}
		</script>
	</head>
	<body onload="openAdv()">
		<input type="button" value="关闭窗口" onclick="closeWin()"/>
	
	</body>
</html>
